package com.rental.model.form.hourse;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Schema(description = "新增出租屋表單")
public class InsertRentalHourseForm {

    @Schema(description = "房东id")
    private Long uid;

    @Schema( description = "经度")
    private BigDecimal longitude;

    @Schema( description = "纬度")
    private BigDecimal latitude;

    @Schema(description = "地址")
    private String location;

    @Schema(description = "图片介绍")
    private String imagesUrl;

    @Schema(description = "视频介绍")
    private String videoUrl;

    @Schema(description = "附近站点")
    private String nearbyStation;

    @Schema(description = "户型")
    private String structure;

    @Schema(description = "简介")
    private String introduce;

    @Schema(description = "租金")
    private BigDecimal rent;

    @Schema(description = "租赁时间")
    private Integer tenancyTerm;

    @Schema(description = "付款方式")
    private String payType;

    @Schema(description = "房东对租客要求")
    private String renterRequire;

    @Schema(description = "房东性格")
    private String landlord;

    @Schema(description = "微信")
    private String wechat;

    @Schema(description = "联系方式")
    private String phone;

    @Schema(description = "房东接受的参观时段")
    private String visitingTime;

    @Schema(description = "出租截至时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

    @Schema(description = "两眼标题")
    private String title;
}
